import React from 'react';
import PropTypes from 'prop-types';
import DefaultImagePicker from '@welab/fx-ui/components/ImagePicker';
// import fn from '@welab/fx-ui/components/PlateformHalf';
import SystemIcon from './SystemIcon';

const ImagePicker = props => (<DefaultImagePicker {...props} iconComponent={SystemIcon} />);
ImagePicker.defaultProps = {
  theme: null,
  ico: false,
};
ImagePicker.propTypes = {
  /**
   * ### ImagePicker 属性说明
   *
   * 展示所有的小图标
   *
   * | Name | Type | Default | Details | isRequired |
   * | ------:| -----------:| -----------: | -----------: | ------:|
   * | theme | object | | 主题 | no |
   * | ico | bool | false | 是否有加号小图标 | no |
   *
   * ### ImagePicker 代码示例(详见示例项目)
   *
   * ```html
   * <ImagePicker theme={theme} ico/>
   * ```
   */
  theme: PropTypes.instanceOf(Object),
  ico: PropTypes.bool,
};

export default ImagePicker;
